package config

import (
	"container/list"
	"sync"
)

var data ConfigData
var once sync.Once

func Init() ConfigData {

	once.Do(func() {
		data = ConfigData{list.New(), 8100, "http://192.168.1.242:8099/api/video/record/callback", "120.78.32.125:10001", "video\\"}
		//data.CamList.PushBack(CmaConfig{"rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov", "", "192.168.0.80"})
		//rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov
		data.CamList.PushBack(CmaConfig{"rtsp://192.168.1.63:50000/video", "", "192.168.1.63"})	
		data.CamList.PushBack(CmaConfig{"rtsp://192.168.1.62:50000/video", "", "192.168.1.62"})	
		data.CamList.PushBack(CmaConfig{"rtsp://192.168.1.54:50000/video", "", "192.168.1.54"})	
		data.CamList.PushBack(CmaConfig{"rtsp://192.168.1.61:50000/video", "", "192.168.1.61"})	
		data.CamList.PushBack(CmaConfig{"rtsp://192.168.1.53:50000/video", "", "192.168.1.53"})	

    })

	return data
}
